set winrar="c:\Program Files\WinRAR\winrar.exe"
set VSTOPublisher2007AddInCS="VSTOPublisher2007AddInTemplates\VSTOPublisher2007AddInCS"
set VSTOPublisher2007AddInCSZip="VSTOPublisher2007AddInTemplates\VSTOPublisher2007AddInCS.zip"
set VSTOPublisher2007AddInVB="VSTOPublisher2007AddInTemplates\VSTOPublisher2007AddInVB"
set VSTOPublisher2007AddInVBZip="VSTOPublisher2007AddInTemplates\VSTOPublisher2007AddInVB.zip"
set VSTOPublisher2007AddInTemplates="VSTOPublisher2007AddInTemplates\"
set VSTOPublisher2007AddInTemplatesZip="VSTOPublisher2007AddInTemplates.vsi"
set VSContent="VSTOPublisher2007AddInTemplates\TemplateVSI.vscontent"

del %VSTOPublisher2007AddInCSZip%
del %VSTOPublisher2007AddInvBZip%
del %VSTOPublisher2007AddInTemplatesZip%

%winrar% a -ep -afzip %VSTOPublisher2007AddInCSZip% %VSTOPublisher2007AddInCS%
%winrar% a -ep -afzip %VSTOPublisher2007AddInVBZip% %VSTOPublisher2007AddInVB%
%winrar% a -ep -afzip %VSTOPublisher2007AddInTemplatesZip% %VSTOPublisher2007AddInCSZip% %VSTOPublisher2007AddInVBZip% %VSContent%

%VSTOPublisher2007AddInTemplatesZip%